<?php

namespace app\admin\model;

use app\admin\model\Admin;
use think\Model;

class Role extends Model
{
    protected $table = 'd_roles';

    public function getUcountAttr($value)
    {
    	return Admin::where('role_id', $value)->count();
    }
}
